﻿using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Graphics;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace BaoVeThanhDia.Sound
{
    class CustomString
    {
        string XauGoc;
        string[] XauBam;
        SpriteFont Font;
        Vector2 Position;
        int countTime;
        int Sotu;
        public CustomString(SpriteFont font, String xaugoc, Vector2 posi)
        {
            countTime = 0;
            Sotu = 0;
            Font = font;
            Position = posi;
            XauGoc = xaugoc;
            XauBam = xaugoc.Split(' ');
        }
        public void Draw(SpriteBatch sprite, int Time)
        {
            countTime++;
            if (countTime >= 10000) countTime = 0;
            Sotu = countTime / Time;
        }
    }
}
